package cn.edu.neusoft.maxingxin231.yuejian06.Model;

import java.util.List;

import cn.edu.neusoft.maxingxin231.yuejian06.Bean.ClubBean;
import cn.edu.neusoft.maxingxin231.yuejian06.Bean.CoachBean;
import cn.edu.neusoft.maxingxin231.yuejian06.Iface.ClubCoachIface;
import cn.edu.neusoft.maxingxin231.yuejian06.Listener.ListListener;
import cn.edu.neusoft.maxingxin231.yuejian06.Service.LoginService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class ClubCoachModel extends ClubRetrofitBaseModel implements ClubCoachIface<CoachBean> {
    private Retrofit retrofit;
    private LoginService loginService;

    public ClubCoachModel(){
        retrofit = getRetrofit();
        loginService = getLoginService();
    }

    @Override
    public void getClubCoach(String club_id, ListListener<CoachBean> listListener) {
        Call<List<CoachBean>> call = loginService.coachlist(club_id);
        callenqueueList(call,listListener);
    }
}
